﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

public enum CommentType
{ General, Financial, Feedback }

namespace Studentium.Entities
{
    public class Comment
    {
        private int id;
        private DateTime date;
        private string text;
        private CommentType commentType;
        private string author;
        private Student student;

        [Browsable(false)]
        public virtual int Id
        {
            get { return id; }
            set { id = value; }
        }

        public virtual DateTime Date
        {
            get { return date; }
            set { date = value; }
        }

        public virtual string Text
        {
            get { return text; }
            set { text = value; }
        }

        public virtual CommentType CommentType
        {
            get { return commentType; }
            set { commentType = value; }
        }

        public virtual string Author
        {
            get { return author; }
            set { author = value; }
        }

        [Browsable(false)]
        public virtual Student Student
        {
            get { return student; }
            set { student = value; }
        }

        public Comment()
        {            
        }

        public Comment(Student student)
        {
            this.student = student;
        }
    }
}
